/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package core.util;

import org.apache.log4j.Logger;

/**
 *
 * @author Vincenzo Merlo, Scuderi Giovanni Luca, Paolo Giuffrida
 */
public class IDWorkflowManager extends IDManager {

	@SuppressWarnings("unused")
	private final Logger logger = COREServiceRegistry.getLogger(IDWorkflowManager.class.toString());
	private volatile static IDWorkflowManager instance = null;

	/**
	 * 
	 * @return
	 */
	public static IDWorkflowManager getInstance() {
		// monitor again & again as it is costly
		if (instance == null) {
			synchronized (IDWorkflowManager.class) {
				// this is needed if two threads are waiting at the monitor at the
				// time when singleton was getting instantiated
				if (instance == null) {
					instance = new IDWorkflowManager();
				}
			}
		}
		return (instance);
	}
}
